package com.banban.user.mapper;

import com.banban.user.domain.ConversationLog;
import com.banban.user.dto.GetHistoryByDateDTO;
import com.banban.user.vo.ConversationSelectVO;
import com.banban.user.vo.SessionInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 张振飞
 * @Package com.banban.user.mapper
 * @date 2025/4/19 11:13
 */

@Mapper
public interface ConversationLogMapper extends BaseMapper<ConversationLog> {

    /**
     * 评价
     * @param conversationLog
     */
    void suggest(ConversationLog conversationLog);

    List<String> selectCreateBy(@Param("day") Integer day);

    List<ConversationLog> selectByUserId(@Param("createBy") String createBy, @Param("day") Integer day);

    List<String> selectCreateByYesterday();

    List<ConversationLog> selectByUserIdYesterday(String createBy);

    List<String> getHistoryDateById(@Param("userId") String userId);

    List<ConversationSelectVO> getHistoryByDate(GetHistoryByDateDTO dto);

}
